import { NewstDta,CationDta } from "./newstype"
import { post,get } from "../request"

// 公告管理

// 公告列表
export  const Newslist=(data:NewstDta)=>{
     return get("news/list",data);
}

// 公告分类  
export const Cationlist=(data:CationDta)=>{
  return  get('newstype/list',data)
}


// 添加
export const NewsAdd=(data:any)=>{
  return  post('news/add',data)
}


// 获取单条公告信息
export const Newsget=(data:any)=>{
  return get('news/get',data)
}


// 批量删除
export const NewsDeleteall =(data:any)=>{
  return post('news/deleteall',data)
}


// 删除
export const NewsDelete =(data:any)=>{
  return get('news/delete',data)
}





  

  